def input_5digits():
    while True:
        x = int(input('请输入一个5位数: '))
        st = str(x)
        le = len(st)
        if 5 == le:
            return x
        else:
            print ('这不是五位数，请重新输入。')


def is_revered_repeat(x):
    x = int(x)
    st = str(x)
    rst = st[::-1]
    if st == rst:
        return True
    else:
        return False


def test_reversed(x):
    if is_revered_repeat(x):
        w = '是'
    else:
        w = '不是';
    print(x, w, '回文数。', sep='')


test_reversed(12321)
test_reversed(3456543)


def process_x(x):
    x = int(x)

    if x % 2:
        w = '是'
    else:
        w = '不是';
    print(x, w, '奇数', sep='')

    if not(x%3) or not(x%7):
        w = '是'
    else:
        w = '不是';
    print(x, w, '3或7的倍数', sep='')

    x10 = x // 10
    y = x - 10 * x10
    print(x, '抹去个位数后是', x - y, sep='')

    print(x, '开方后是', x ** 0.5, sep='')


process_x(12321)
process_x(1232)